<?php

define('DEBUG', true);

ini_set('include_path', ini_get('include_path') . PATH_SEPARATOR . '../lib');
error_reporting(E_ALL);
date_default_timezone_set('Europe/Istanbul');

// Include PSK constants.
include 'psk_const.php';

// Include configuration file.
include '../conf/config.php';

require_once 'psk_application.php';

$app = PSK_Application::getInstance();

$app->config->setConfigArray($psk_conf);
$app->DefineLayout('layout', 'PSK_APP');
$app->DefineLayout('adminLayout', 'admin', 'admin');

$app->Run(basename(__FILE__));
$app->End();

// PSK_Log::getInstance()->WriteArray(array(__METHOD__, __LINE__, func_get_args()));